package com.beaven.imserver.net.bean.api.group;

import com.google.common.base.Strings;
import com.google.gson.annotations.Expose;

/**
 * author: Beaven
 * time: 2017/6/1 19:04
 */
public class GroupMemberCreateModel {
  @Expose
  private String groupId;
  @Expose
  private String userId;

  public String getGroupId() {
    return groupId;
  }

  public void setGroupId(String groupId) {
    this.groupId = groupId;
  }

  public String getUserId() {
    return userId;
  }

  public void setUserId(String userId) {
    this.userId = userId;
  }

  public static boolean check(GroupMemberCreateModel model) {
    return model != null && (!Strings.isNullOrEmpty(model.getGroupId())) && (!Strings.isNullOrEmpty(
        model.getUserId()));
  }
}
